import { post, get } from '@/utils/request'
import { loginData } from '@/type/login'

enum URL {
  login = '/login';
  permission = '/permission',
}

const login = async (data:loginData) => post({url: URL.login, data})
const permission = async () => get({url: URL.permission})

export default {
  login,
  permission
}